package com.chenju.javastatic.domain.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
public class DiffMethodDetailPoJo {
    private int oldBeginLine;
    private int oldEndLine;
    private String oldContent;

    private int newBeginLine;
    private int newEndLine;
    private String newContent;

    public DiffMethodDetailPoJo(int oldBeginLine, int oldEndLine, String oldContent, int newBeginLine, int newEndLine, String newContent) {
        this.oldBeginLine = oldBeginLine;
        this.oldEndLine = oldEndLine;
        this.oldContent = oldContent;
        this.newBeginLine = newBeginLine;
        this.newEndLine = newEndLine;
        this.newContent = newContent;
    }

    @Override
    public String toString() {
        return "\n\t\tDiffMethodDetailPoJo{\n" +
                "\t\t\toldBeginLine=" + oldBeginLine + ",\n" +
                "\t\t\toldEndLine=" + oldEndLine + ",\n" +
                "\t\t\toldContent='" + oldContent + '\'' + ",\n" +
                "\t\t\tnewBeginLine=" + newBeginLine + ",\n" +
                "\t\t\tnewEndLine=" + newEndLine + ",\n" +
                "\t\t\tnewContent='" + newContent + '\'' + ",\n" +
                "\t\t}\n";
    }
}
